<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script language="javascript" type="text/javascript">   
// 以下方式直接跳转  
//window.location.href='HelloWorld';  
// 以下方式定时跳转  
//setTimeout("javascript:location.href='HelloWorld'", 5000);   
</script>


</head>
<body>

	<span id="totalSecond">3</span>

	<script language="javascript" type="text/javascript">   
var second = document.getElementById('totalSecond').textContent;   
  
if (navigator.appName.indexOf("Explorer") > -1)  {   
    second = document.getElementById('totalSecond').innerText;   
} else {   
    second = document.getElementById('totalSecond').textContent;   
}   
  
setInterval("redirect()", 1000);   
function redirect() {   
if (second < 0) {   
    location.href = 'HelloWorld';   
} else {   
    if (navigator.appName.indexOf("Explorer") > -1) {   
        document.getElementById('totalSecond').innerText = second--;   
    } else {   
        document.getElementById('totalSecond').textContent = second--;   
    }   
}   
}   
</script>
</body>
</html>